#!/usr/bin/python3

import os
import shutil

dn = "../python3/wstage4"
for fn in os.listdir(dn):
    fullfn = os.path.join(dn, fn)
    if os.path.isdir(fullfn):
        continue
    dstfullfn = os.path.join("/usr/lib/python3.12/site-packages/wstage4", fn)
    shutil.copy(fullfn, dstfullfn)
    print(dstfullfn)

dn = "../python3/wstage4/os_win98"
for fn in os.listdir(dn):
    fullfn = os.path.join(dn, fn)
    if os.path.isdir(fullfn):
        continue
    dstfullfn = os.path.join("/usr/lib/python3.12/site-packages/wstage4/os_win98", fn)
    shutil.copy(fullfn, dstfullfn)
    print(dstfullfn)

dn = "../python3/wstage4/os_win98/custom_actions"
for fn in os.listdir(dn):
    fullfn = os.path.join(dn, fn)
    if os.path.isdir(fullfn):
        continue
    dstfullfn = os.path.join("/usr/lib/python3.12/site-packages/wstage4/os_win98/custom_actions", fn)
    shutil.copy(fullfn, dstfullfn)
    print(dstfullfn)

dn = "../python3/wstage4/os_winxp"
for fn in os.listdir(dn):
    fullfn = os.path.join(dn, fn)
    if os.path.isdir(fullfn):
        continue
    dstfullfn = os.path.join("/usr/lib/python3.12/site-packages/wstage4/os_winxp", fn)
    shutil.copy(fullfn, dstfullfn)
    print(dstfullfn)

dn = "../python3/wstage4/os_winxp/custom_actions"
for fn in os.listdir(dn):
    fullfn = os.path.join(dn, fn)
    if os.path.isdir(fullfn):
        continue
    dstfullfn = os.path.join("/usr/lib/python3.12/site-packages/wstage4/os_winxp/custom_actions", fn)
    shutil.copy(fullfn, dstfullfn)
    print(dstfullfn)

dn = "../python3/wstage4/os_win7"
for fn in os.listdir(dn):
    fullfn = os.path.join(dn, fn)
    if os.path.isdir(fullfn):
        continue
    dstfullfn = os.path.join("/usr/lib/python3.12/site-packages/wstage4/os_win7", fn)
    shutil.copy(fullfn, dstfullfn)
    print(dstfullfn)

dn = "../python3/wstage4/os_win7/custom_actions"
for fn in os.listdir(dn):
    fullfn = os.path.join(dn, fn)
    if os.path.isdir(fullfn):
        continue
    dstfullfn = os.path.join("/usr/lib/python3.12/site-packages/wstage4/os_win7/custom_actions", fn)
    shutil.copy(fullfn, dstfullfn)
    print(dstfullfn)
